# all platforms

INCLUDEPATH += $$PWD
INCLUDEPATH += $$PWD/include
INCLUDEPATH += $$PWD/include/google
INCLUDEPATH += $$PWD/include/google/protobuf



greaterThan(QT_MAJOR_VERSION,4){
        TARGET_ARCH=$${QT_ARCH}
}else{
        TARGET_ARCH=$${QMAKE_HOST.arch}
}
contains(TARGET_ARCH, x86_64){
        message("64-bit")
}else{
        message("32-bit")
#        CONFIG(debug, debug|release){
#        LIBS += $$PWD/x86/debug/*.lib
#        }else{
#        LIBS += $$PWD/x86/release/*.lib
#        }

    CONFIG(release, debug|release) {
        # Release 模式下的配置
        LIBS += $$PWD/x86/release/*.lib
    } else: CONFIG(profile, debug|release) {
        # Profile 模式下的配置
        LIBS += $$PWD/x86/release/*.lib
    } else {
        # 默认情况下，可以认为是 debug 模式

    }
}
INCLUDEPATH += $$PWD/grpcwrapper

INCLUDEPATH += $$PWD/src_grpcProto
HEADERS += $$PWD/src_grpcProto/*.h \
    $$PWD/grpcwrapper/grpcclientproxyinserver.h \
    $$PWD/grpcwrapper/grpceventdef.h \
    $$PWD/grpcwrapper/grpceventdispatchercore.h \
    $$PWD/grpcwrapper/grpceventserverservice.h \
    $$PWD/grpcwrapper/grpcserver.h
SOURCES += $$PWD/src_grpcProto/*.cc \
    $$PWD/grpcwrapper/grpcclientproxyinserver.cpp \
    $$PWD/grpcwrapper/grpceventdef.cpp \
    $$PWD/grpcwrapper/grpceventdispatchercore.cpp \
    $$PWD/grpcwrapper/grpceventserverservice.cpp \
    $$PWD/grpcwrapper/grpcserver.cpp


INCLUDEPATH += $$PWD/src_normalProto
HEADERS += $$PWD/src_normalProto/*.h
SOURCES += $$PWD/src_normalProto/*.cc


# 配置file_copies  必须配置，否则服务复制
CONFIG += file_copies
# 源文件目录
grpc.files += \
    $$PWD/zlib.dll \
    $$PWD/zlibd.dll

# 目标目录
grpc.path = $$DESTDIR
COPIES += grpc
